/*
 * @Description: 猴子类 子类 接口实现类
 * 
 * @Author: rendc
 * 
 * @Date: 2025-08-05 14:41:48
 * 
 * @LastEditors: rendc
 * 
 * @LastEditTime: 2025-08-05 14:56:29
 */
public class Monkey extends Animal2 implements IJumpAble, ICycleAble {

  // 成员属性
  private String name;

  // 构造器
  public Monkey() {
  }

  public Monkey(String color, int age, String name) {
    super(color, age);
    this.name = name;
  }

  // 重写父类、接口中的方法
  @Override
  public void cycle() {
    System.out.println("🐒" + name + "可以骑🚴🏻");
  }

  @Override
  public void jump() {
    System.out.println("🐒" + name + "可以跳🔥○");
  }

  @Override
  public void eat() {
    System.out.println("🐒" + name + "喜欢吃🍌");

  }

  @Override
  public void sleep() {
    System.out.println("🐒" + name + "喜欢睡🌲上");
  }

  @Override
  public String toString() {
    String string = "Monkey🐒[name:" + name + "," + super.toString() + "]";
    System.out.println(string);
    return string;
  }
}